﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UpdateTeacher.aspx.cs" Inherits="Presentation.Update"
    MasterPageFile="~/Site.Master" %>

<asp:Content ID="content5" ContentPlaceHolderID="MainContent" runat="server">
  <style type="text/css">
            .distance
            {
                height: 50px;
                width: 150px;
            }
            .style1
            {
                color: #0000FF;
            }
            .style3
      {
          width: 171px;
      }
        </style>
        <script type="text/javascript">

            function GotoTeacherListPage() {
                window.location.href = "TeacherList.aspx";

                return false; //stop submit to server
            }

    </script>
    <fieldset class="bold" id="CreateTeacher">
        <legend>Teacher</legend>
      
        <div class="style1">
            <table>
                <tr class="distance">
                    <td>
                        Teacher Name
                    </td>
                    <td>
                        <asp:TextBox ID="TeacherNameBox" runat="server" Width="299px" Height="25px"></asp:TextBox>
                    </td>
                </tr>
                <tr class="distance">
                    <td>
                        Teacher Gender
                    </td>
                    <td>
                        <asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatDirection="Horizontal">
                            <asp:ListItem Selected="True">Male</asp:ListItem>
                            <asp:ListItem Selected="False">Female</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr class="distance">
                    <td>
                        Department
                    </td>
                    <td>
                        <asp:DropDownList ID="DropDownListDepartment" runat="server">
                        </asp:DropDownList>
                    </td>
                   
                </tr>
                <tr class="distance">
                    <td>
                        <asp:Button ID="Button_Update" runat="server" Text="Update" OnClick="Button_Update_Click" />
                    </td>
                    <td>
                    <input type="button" value="Cancel" OnClick="GotoTeacherListPage();" />
                    </td>
                </tr>
            </table>
        </div>
    </fieldset>
</asp:Content>
